package com.docted.design.pattern.factory.func;

import com.docted.design.pattern.factory.Yili;

/**
 * @author DoCted
 * @since v1.0 2018/3/5
 */
public class FactoryTest {

    public static void main(String[] args) {


        Factory factory = new YiliFactory();
        Yili yili = (Yili) factory.getMilk();
        System.out.println(yili.getName());

    }
}
